<template>
  <div class="error-tip">
    <img :src="require('../../assets/img/error.png')" alt="">
    <p>{{ errorData[errorCode] }}</p>
  </div>
</template>

<script>
import errorData from '@/data/error.js'
export default {
  props: {
    errorCode: Number
  },
  setup() {

    return{
      errorData
    }
  }

}
</script>

<style lang="less" scoped>
.error-tip{
  display: flex;
  flex-direction: column;  //y轴对齐
  justify-content: center;
  align-items: center;
  height: 80vh;
  img{
    width: .5rem;
  }
  p{
    font-size: .14rem;
    color: #999;
    margin-top: .15rem;
  }
}
</style>